test the window state stuff
authorHavoc Pennington <hp@redhat.com>
Tue, 27 Feb 2001 20:40:15 +0000 (20:40 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Tue, 27 Feb 2001 20:40:15 +0000 (20:40 +0000)
commit75d79abf9801195a0241b02ed7974fafa8278f5c
tree750b8f34aca36f06e24ff6ec060353d3e785289f
parentaf03d3855dc4f6eefe713c69dce355de6f26d4ab
test the window state stuff

2001-02-26  Havoc Pennington  <hp@redhat.com>

* gtk/testgtk.c: test the window state stuff

* gtk/gtkwindow.c (gtk_window_present): new function, makes a
window come to the user's attention as if it were just created
(gtk_window_iconify): new function
(gtk_window_deiconify): new function
(gtk_window_stick): new function
(gtk_window_unstick): new function
(gtk_window_maximize): new function
(gtk_window_unmaximize): new function

* gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal

* gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE

* gdk/x11/gdkevents-x11.c: create window state events when
appropriate
(gdk_wmspec_supported): new function

* gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
iconification before showing the window
(gdk_window_deiconify): new function
(gdk_window_stick): new function
(gdk_window_unstick): new function
(gdk_window_maximize): new function
(gdk_window_unmaximize): new function

* gdk/gdkwindow.c: store the window state in the window;
change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
window->mapped.
(gdk_window_get_state): return the current window state

* gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
(gdk_event_get_state): handle GDK_WINDOW_STATE
(gdk_synthesize_window_state): function to create the window state
events

* gdk/gdkevents.h (struct _GdkEventWindowState): new type of
event, for changes to "window state" such as maximized, sticky,
etc.

* gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
focuses a window

* gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function,
finds out if we support a given WM spec hint
24 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkevents.c
gdk/gdkevents.h
gdk/gdkinternals.h
gdk/gdkwindow.c
gdk/gdkwindow.h
gdk/x11/gdkevents-x11.c
gdk/x11/gdkgeometry-x11.c
gdk/x11/gdkmain-x11.c
gdk/x11/gdkwindow-x11.c
gdk/x11/gdkx.h
gtk/gtkmain.c
gtk/gtkwidget.c
gtk/gtkwidget.h
gtk/gtkwindow.c
gtk/gtkwindow.h
gtk/testgtk.c
tests/testgtk.c